<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<title>{{$data['jname']}}招聘-{{$data['shortname']}}招聘-聘Pin网</title>
		<link rel="stylesheet" type="text/css" href="./Public/Home/css/style.css"/>
		<link rel="stylesheet" type="text/css" href="./Public/Home/css/content.css"/>
		<script src="./Public/Home/js/jquery-1.9.1.min.js" type="text/javascript" charset="utf-8"></script>
		<script src="./Public/Home/js/jquery.easing.min.js" type="text/javascript" charset="utf-8"></script>
		<script src="./Public/Home/js/index.js" type="text/javascript" charset="utf-8"></script>
		<script src="./Public/Home/js/content.js" type="text/javascript" charset="utf-8"></script>
		<!-- 百度地图 -->
		<script type="text/javascript" src="http://api.map.baidu.com/api?v=2.0&ak=M4h2Gc1ZS7zNubuXKI7k6E875WvNwBc8"></script>
		<!-- 收藏功能 -->
		<script type="text/javascript">
		$(function(){
			$(".jb_collention").click(function(){
				{{if value="isset($_SESSION['homeInfo'])"}}
				if($(this).find('span').html()=='收藏职位'){
					var jid = {{$data['jid']}};
					var uid = {{$_SESSION['homeInfo']['uid']}};
					$.ajax({
						type:"post",
						url:"{{U('Collection/collect')}}",
						data:{jid:jid,uid:uid},
						dataType:"JSON",
						success:function(phpData){
							if(phpData){
								$(".jb_collention").addClass('collected').find('span').html('已收藏');
							}
						}
					});

				}else{
					if(confirm('确定要取消收藏该职位吗？')){
						var jid = {{$data['jid']}};
						var uid = {{$_SESSION['homeInfo']['uid']}};
						$.ajax({
							type:"post",
							url:"{{U('Collection/unCollect')}}",
							data:{jid:jid,uid:uid},
							dataType:"JSON",
							success:function(phpData){
								if(phpData){
									$(".jb_collention").removeClass('collected').find('span').html('收藏职位');
								}
							}
						});
					}
				}
				{{else}}
				alert('请您先登录账号');
				{{endif}}
			})
		})
		</script>
	</head>
	<body>
	{{include file="../Common/header"}}

	<!--页面主体-->
	<div id="container">
		<div class="content_l">
			<dl class="job_datail">
				<dt class="jobD_title">
					<h1>
						<em></em>
						<div>{{$data['gsname']}}招聘</div>
						{{$data['jname']}}
					</h1>
					{{if value="$data['collect'] eq 0"}}
						<a href="javascript:void(0);" class="jb_collention">
							<span id="collection_pos">收藏职位</span>
						</a>
					{{else}}
						<a href="javascript:void(0);" class="jb_collention collected">
							<span id="collection_pos">已收藏</span>
						</a>
					{{endif}}
				</dt>
				<dd class="job_request">
					<p>
						<span class="money_red">{{$data['salary']}}</span>
						<span>{{$data['city']}}</span>
						<span>{{$data['experience']}}</span>
						<span>{{$data['education']}}</span>
						<span>{{$data['jobtype']}}</span>
					</p>
					<p>职位诱惑 : {{$data['benefit']}}</p>
					<p class="publish_time">{{date('Y-m-d H:i',$data['sendtime'])}}  发布于聘Pin网</p>
				</dd>
				<dd class="job_bt" style="min-height:940px;">
					<h3 class="description">职位描述</h3>
					<p>{{str_replace(array("\n","\r\n"),"<BR />",$data['des'])}}</p>
				</dd>
				<dd class="job_publisher">
					<h3>职位发布者</h3>
					<div class="hr_job">
						<img src="{{$data['picture']?$data['picture']:'./Public/Home/image/myresume/default_headpic.png'}}"/>
						<div class="hr_name">
							<span class="name">{{$data['username']}}</span>
							<span class="pos">招聘 </span>
						</div>
						<div class="hr_data">
							<div style="border:0;float:right; ">
								<span class="data">{{$data['reg']}}%</span>
								<span class="tip">简历及时处理率<span class="tip_text" style="width: 250px;">投递后7天内处理完成的简历所占比例</span></span>
							</div>
						</div>
					</div>
				</dd>
				<dd class="job_deliver">
					{{if value="!$data['deliver']"}}
					<a href="javascript:if(confirm('确定要应聘该职位吗？')) location.href='status_{{$_GET['jid']}}.html';">投个简历</a>
					{{else}}
					<a href="javascript:void(0);" style="background:#bfbfbf;color:#fff;cursor:default;">已投递</a>
					{{endif}}
				</dd>
			</dl>
		</div>
		<div class="content_r">
			<dl class="job_company">
				<dt>
					<a href="company_{{$data['gsid']}}.html" target="_blank">
						<img src="{{$data['logo']}}" style="width: 80px;height: 80px;"/>
						<div>
							<h2>
								{{$data['shortname']}}
								<img src="./Public/Home/image/valid.png" style="width: 15px; height: 19px;"/>
							</h2>
						</div>
					</a>
				</dt>
				<dd>
					<ul class="c_feature">
						<li>
							<span>领域</span> {{$data['industry']}}
						</li>
						<li>
							<span>规模</span> {{$data['size']}}
						</li>
					</ul>
					<h4>发展阶段</h4>
					<ul class="c_feature">
						<li>
							<span>目前阶段</span> {{$data['financing']}}
						</li>
					</ul>
					<h4>工作地址</h4>
					<div class="work_addr">
						- {{$data['jobaddress']}}
					</div>
					<div id="smallmap">
						<div id="allmap" style="width:100%;height:100%;"></div>
					</div>
					<!-- 百度地图 -->
					<script type="text/javascript">
						// 百度地图API功能
						var map = new BMap.Map("allmap");  // 创建Map实例
						// map.centerAndZoom("{{$data['jobaddress']}}",15);
						var myGeo = new BMap.Geocoder();
						// 将地址解析结果显示在地图上,并调整地图视野
						myGeo.getPoint("{{$data['jobaddress']}}", function(point){
							map.centerAndZoom(point, 15);
							var marker = new BMap.Marker(point);  // 创建标注
							map.addOverlay(marker);// 将标注添加到地图中
							marker.setAnimation(BMAP_ANIMATION_BOUNCE); //跳动的动画
						})
						map.enableScrollWheelZoom(true);
					</script>
				</dd>
			</dl>
			<div class="similar">
				<h4 class="similar_title">
					<span>相似职位</span>
				</h4>
				<div class="similar_content">
					<ul class="sl_reset">
					{{foreach from="$sameData" value="$v"}}
						<li>
							<a href="content_{{$v['jid']}}.html" target="_blank">
								<div class="item_logo">
									<img src="{{$v['logo']}}"/>
								</div>
								<div class="item_pos">
									<h2>{{$v['jname']}}</h2>
									<p>{{$v['salary']}}k</p>
									<p class="similar_company_name">
										<span class="scn_1">{{$v['gsname']}} </span>
										<span>[{{$v['city']}}]</span>
									</p>
								</div>
							</a>
							<div class="sc_info">
								<div class="arr">
									<span></span>
								</div>
								<p>
									<span>领域：</span>
									<span>{{$v['industry']}}</span>
								</p>
								<p>
									<span>阶段：</span>
									<span>{{$v['financing']}}</span>
								</p>
								<p>
									<span>规模：</span>
									<span>{{$v['size']}}</span>
								</p>
								<div class="sc_label">
									<span>“{{$v['benefit']}}”</span>
								</div>
							</div>
						</li>
					{{endforeach}}
					</ul>
					<a href="{{U('List/index',array('k'=>$data['jname']))}}" target="_blank" class="jobs_similar_footer">查看更多相似职位</a>
				</div>
			</div>
		</div>
	</div>
	<!--页面主体结束-->





	<!--回到顶部-->
	<a href="javascript:void(0);" id="back"></a>
	<!--回到顶部结束-->

	{{include file="../Common/footer"}}



	</body>
</html>
















